using System;
using System.Collections.Generic;
using System.Text;
using QLPMT_DAO;
using QLPMT_DTO;
namespace QLPMT_BUS
{
   public class BaoCaoSuDungThuocBUS
    {
       public string GetMa()
       {
           List<BaoCaoSuDungThuoc> list = new List<BaoCaoSuDungThuoc>();
           list = new BaoCaoSuDungThuocDAO().GetAll();
           BaoCaoSuDungThuoc temp = new BaoCaoSuDungThuoc();
           foreach (BaoCaoSuDungThuoc X in list)
           {
               temp.Ma= X.Ma;
           }
           string ma = "";
           if (temp.Ma != null)
           {
               int sobenhnhan = int.Parse(temp.Ma) + 1;
               ma =sobenhnhan.ToString();
           }
           else
               ma = "1";
           return ma;
       }
       public List<BaoCaoSuDungThuoc> DanhSachBaoCaoSuDungThuoc(int thang)
       {
           return new BaoCaoSuDungThuocDAO().DanhSachThuocSuDungTrongThang(thang);
       }
    }
}
